package hr_project.hr.biz.Right;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import hr_project.hr.dao.IRightDao;
import hr_project.hr.entity.Right;

@Service
public class RightBizImpl implements IRightBiz {

	@Autowired
	private IRightDao dao;
	
	public IRightDao getDao() {
		return dao;
	}

	public void setDao(IRightDao dao) {
		this.dao = dao;
	}

	@Override
	public List<Right> getParentRight() {
		// TODO Auto-generated method stub
		return dao.getParentRight();
	}

	@Override
	public List<Right> getRightByPid(long pid) {
		// TODO Auto-generated method stub
		return dao.getRightByPid(pid);
	}

	@Override
	public void addRight(Right rig) {
		// TODO Auto-generated method stub
		dao.addRight(rig);
	}

	@Override
	public void delRight(long rid) {
		// TODO Auto-generated method stub
		dao.delRight(rid);
	}

	@Override
	public Right getByid(long id) {
		// TODO Auto-generated method stub
		return dao.getByid(id);
	}

	@Override
	public void modRight(Right rig) {
		// TODO Auto-generated method stub
		dao.modRight(rig);
	}

}
